package org.jeecg.common.modules.settlement.service;

import org.apache.ibatis.annotations.Param;
import org.jeecg.common.modules.doctor.entity.Doctor;
import org.jeecg.common.modules.order.entity.OrderInfo;
import org.jeecg.common.modules.settlement.entity.Settlement;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.modules.settlement.vo.SettlementReqVo;

import java.util.List;

/**
 * @Description: settlement
 * @Author: jeecg-boot
 * @Date:   2020-09-03
 * @Version: V1.0
 */
public interface ISettlementService extends IService<Settlement> {

    /**
     * 初始化结算记录
     * @param orderInfo
     * @return
     */
    Settlement initSettlement(OrderInfo orderInfo);

    /**
     * 根据订单id获取结算信息
     * @param orderId
     * @return
     */
    Settlement getSettlementInfo(String orderId);

    /**
     * 查询
     * @param orderId
     * @param userName
     * @param doctorName
     * @param dataStart
     * @param pageSize
     * @return
     */
    List<SettlementReqVo> selectSettlementInfo(String orderId, String userName, String doctorName, Integer dataStart, Integer pageSize);

    /**
     * 查询
     * @param orderId
     * @param userName
     * @param doctorName
     * @return
     */
    int getSettlementCount(String orderId, String userName, String doctorName);
}
